<?php /* @var $view Model_View*/?>
<div class="container">
    <div class="row" >
        <div class="span12 blockGray">
            <div class="blockInner">
                <?php
                if($view->result == true)
                {
                    echo '<div class="alert alert-success">';
                    echo 'Orden registrada con exito';
                    echo '</div>';
                }?>
            
                <h1>Nueva Orden</h1>
                <?php
                    $action = ($view->isBuyer != null) ? 'shopping': 'orders';
                    echo '<a class="btn" href="' . $view->url(array('action' => $action)) . '" >Regresar</a>';
                    echo '<div class="clear" style="height:15px;" ></div>';
                ?>
                <?php echo $view->Orders()->getRadioButtonsOptions(2);?>
                <form method="POST" action="<?php echo $view->url(array('action'=>'createOrder', 'buyer' => $view->isBuyer));?>">
                <?php $view->Orders()->printCreateOrder($view->users, $view->isBuyer);?>
                    <br/>
                    <input id="submitCreateOrder"class="btn" type="submit" value="Guardar"/>
                </form>
            </div>
        </div>
    </div>
</div>
